package com.feale.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import lombok.Data;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Request01 {
    @JsonProperty(required = true,value = "city")
    @JsonPropertyDescription("城市名称,是中文的话,转化为汉语拼音 eg.北京:beijing")
    private String city;
    @JsonProperty(required = true,value = "company")
    @JsonPropertyDescription("公司信息,是中文的话,转化为汉语拼音 eg.阿里巴巴:alibaba")
    private Company company;

    @Data
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class Company{
        @JsonProperty(required = true,value = "name")
        @JsonPropertyDescription("公司名称")
        private String name;

        @JsonProperty(required = true,value = "type")
        @JsonPropertyDescription("公司类型")
        private String type;
    }
}
